<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=0">
    <title>登录番信</title>
    <link th:href="@{public/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/login.css}" rel="stylesheet">
    <script th:src="@{public/js/jquery-3.3.1.min.js}"></script>
    <script th:src="@{public/js/bootstrap.js}"></script>
    <script th:src="@{public/js/vue.js}"></script>
</head>
<body>
<div id="cqr" class="container">
    <p class="h3 text-center">登录番信</p>
    <form class="form-horizontal col-sm-offset-3">
        <div class="form-group has-feedback">
            <label for="username" class="col-sm-2 control-label">账号:</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" v-model="username" placeholder="账号" id="username">
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
            </div>
        </div>
        <div class="form-group has-feedback">
            <label for="password" class="col-sm-2 control-label">密码:</label>
            <div class="col-sm-4">
                <input type="password" class="form-control" id="password" placeholder="密码" v-model="password">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <div class="checkbox">
                    <label>
                        <input type="checkbox"> Remember me
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-2">
                <button type="button" class="btn btn-primary btn-block btn-flat" @click="login">登录</button>
            </div>
            <div class="col-sm-2">
                <button type="button" class="btn btn-primary btn-block btn-flat" @click="register">注册</button>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-4">
                <button type="button" class="btn btn-success btn-block btn-flat" @click="getRandAccount">获取随机账号</button>
            </div>
        </div>
    </form>
</div>
</body>
<script th:src="@{js/login.js}"></script>
</html>